home *** CD-ROM | disk | FTP | other *** search
/ Apple Developer Connection Student Program / ADC Tools Sampler CD Disk 3 1999.iso / Apple Development Tools / SourceServer 3.4.1.sit / SourceServer 3.4.1 / How to use SourceServer next >
Text File  |  1994-07-22  |  2KB  |  52 lines

  1. How to use SourceServer with CW and ToolServer
  2.  
  3. 1.  Set up ToolServer so that it includes the "AliasSourceServer" , "UnaliasSourceServer", 
  4. and "Directory2"  scripts and also the "RProj" tool.
  5.  
  6. 2.  Launch SourceServer through the Finder.
  7.  
  8. 3.  Launch ToolServer from CW.
  9.  
  10. 4.  Type 'Execute AliasSourceServer' (without quotes) in the worksheet, select it and 
  11. press the Enter key.  If you get an error, you didn't set up ToolServer completely with 
  12. the necessary scripts and tools.  Please look at the "How to add Tools" doc in the 
  13. compiler's folder.
  14.  
  15. 5.  Enter commands as you normally would for Projector.
  16.  
  17. 6.  When you're done with SourceServer, type 'Execute UnaliasSourceServer' (without quotes).
  18.  
  19. <<<<<<<<<<<<<<<<<<<<<<<<<<<<
  20.  
  21. The followng is part of the text for the script "AliasSourceServer".
  22.  
  23. #    File:    AliasSourceServer
  24. #
  25. #    Copyright Apple Computer, Inc. 1991
  26. #    All rights reserved.
  27. #
  28. #
  29. #        Scripts that have Projector commands within them can normally not be 
  30. #    executed by ToolServer. Using SourceServer, the RProj tool, and three support
  31. #    scripts (AliasSourceServer, UnaliasSourceServer, and Directory2), ToolServer
  32. #    can perform Projector functions. SourceServer must be running on the same
  33. #    computer as ToolServer before the Projector scripts can be executed.
  34. #    Individual Projector command lines are sent from ToolServer to SourceServer
  35. #    via AppleEvents by the RProj tool. To allow RProj to automatically be invoked
  36. #    any time a Projector command is encountered, we use the AliasSourceServer
  37. #    script to alias each ProjectorCommand to "RProj ProjectorCommand". To make
  38. #    sure that the aliases remain in effect even after the AliasSourceServer script
  39. #    has finished running, we must use the command line, "Execute AliasSourceServer".
  40. #    Directory commands also need to be aliased to Directory2, which will keep the
  41. #    current directory of both ToolServer and SourceServer set to the same location
  42. #    so both Projector and non-Projector commands operate on the same set of files.
  43. #    This alias is also established by the AliasSourceServer script. Finally, after
  44. #    completion of the Projector commands, "Execute UnaliasSourceServer" restores
  45. #    ToolServer to it's normal operation.
  46. #
  47. #        This file, AliasSourceServer, sets up aliases for ToolServer to reroute
  48. #    Projector commands, via the RProj tool, to SourceServer.
  49.  
  50. --Mark Anderson
  51. --metrowerks 
  52. 7/22/94